<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>{% block title %}Special operations{% endblock %}</title>
        {% block stylesheets %}
            <link href="{{ asset('/bundles/specialoperationsgame/css/main.css') }}" type="text/css" rel="stylesheet" />
            <link href="{{ asset('/bundles/specialoperationsgame/css/jquery-ui-1.8.18.custom.css') }}" type="text/css" rel="stylesheet" />
            <link href="{{ asset('/bundles/specialoperationsgame/css/jquery.dataTables.css') }}" type="text/css" rel="stylesheet" />
            <link href="{{ asset('/bundles/specialoperationsgame/css/jquery.dataTables_themeroller.css') }}" type="text/css" rel="stylesheet" />
        {% endblock %}
    </head>
    <body>
        <div id="menu" class="panel">
            <ul>
                {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                    <li><a href="#" target-container="#content" data-url="{{ path('district') }}">Dystrykty</a></li>
                    <li><a href="#" target-container="#content" data-url="{{ path('fos_user_profile_show') }}">Profil</a></li>
                    
                    <li><a href="#" target-container="body" data-url="{{ path('fos_user_security_logout') }}">Wyloguj</a></li> 
                {% else %}
                    <li><a href="#" target-container="#content" data-url="{{ path('fos_user_security_login') }}">Zaloguj</a></li>   

                    <li><a href="#" target-container="#content" data-url="{{ path('fos_user_registration_register') }}">Rejestruj</a></li> 
                {% endif %}
                {# <li><a href="#" target-container="content" data-url="{{ path('units') }}">Jednostki</a></li> #}
            </ul>
        </div>
        <div id="header">
            {% block header %}{% endblock %}
        </div>
        <div id="content">
            {% block body %}{% endblock %}
        </div>
        <div id="footer">
            {% block footer %}{% endblock %}
        </div>
        {% block javascripts %}
            <script src="{{ asset('/bundles/specialoperationsgame/js/jquery-1.7.2.min.js') }}" type="text/javascript"></script>
            <script src="{{ asset('/bundles/specialoperationsgame/js/jquery.dataTables.min.js') }}" type="text/javascript"></script>
            <script src="{{ asset('/bundles/specialoperationsgame/js/jquery-ui-1.8.18.custom.min.js') }}" type="text/javascript"></script>
            <script src="{{ asset('/bundles/specialoperationsgame/js/main.js') }}" type="text/javascript"></script>
        {% endblock %}
            <div id="modal"></div>
    </body>
</html>